package com.gitee.vueantd.upload.service;


import com.gitee.vueantd.upload.domain.UploadChunk;
import com.gitee.vueantd.upload.domain.UploadTaskData;
import com.gitee.vueantd.upload.service.dto.UploadTaskDataQueryCriteria;
import org.springframework.data.domain.Pageable;

import java.io.File;
import java.util.Set;

public interface UploadTaskDataService {

  /**
   * 分页查询
   *
   * @param criteria 条件
   * @param pageable 分页参数
   * @return /
   */
  Object queryAll(UploadTaskDataQueryCriteria criteria, Pageable pageable);


  /**
   * 删除
   *
   * @param ids /
   */
  void delete(Set<Long> ids);

  UploadTaskData findById(Long id);

  UploadTaskData add(UploadChunk uploadChunk, File file, String newFileName);
}
